<template>
	<view class="content">
		<view>
			<view>
				
			</view>
			<view>
				
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getInfo
	} from '@/api/api.js'
	export default {
		data() {
			return {
				title: 'Hello',
				info: {}
			}
		},
		onLoad() {

		},
		methods: {
			async getData() {
				console.log('getData====')
				getInfo().then(res => {
					console.log('res')
					console.log(res)

					if (res.code === 200) {
						uni.showToast({
							title: '请求成功！',
							icon: "success",
							duration: 2000
						})
						
						if(res.data){
							this.info = res.data
						}
					}else{
						uni.showToast({
							title: '请求失败！',
							icon: "error",
							duration: 2000
						})
					}
				})

			}
		},
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
